//
//  DetailsViewController.m
//  UI_17_homework_Preview_NSFileManage
//
//  Created by li cheng on 16/8/7.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "DetailsViewController.h"

@interface DetailsViewController ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *phoneNumberLabel;
@property (weak, nonatomic) IBOutlet UILabel *address;
@property (weak, nonatomic) IBOutlet UIImageView *iamgeView;

@end

@implementation DetailsViewController

- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    UIImage *image = [UIImage imageNamed:_information.imageName];
    NSLog(@"@@@@@@@@@@@@@@@@@@@@@@%s", __FUNCTION__);
    if (image) {
        self.iamgeView.image = image;
    }
    self.nameLabel.text = [NSString stringWithFormat:@"名字:%@", _information.name];
    self.phoneNumberLabel.text = [NSString stringWithFormat:@"联系方式:%@", _information.contactWay];
    self.address.text = _information.address;
    [NSString stringWithFormat:@"家庭住址%@", _information.address];
     NSLog(@"%s", __FUNCTION__);
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
